<?xml version="1.0" encoding="UTF-8"?>
<!--
*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html 
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License. 
* The Original Code is Openbravo ERP. 
* The Initial Developer of the Original Code is Openbravo SL 
* All portions are Copyright (C) 2001-2006 Openbravo SL 
* All Rights Reserved. 
* Contributor(s):  ______________________________________.
************************************************************************
-->
<REPORT>
  <template file="ReportDebtPayment.html"/>
  <PARAMETER id="paramToolBar" name="toolbar" default=""/>
  <PARAMETER id="fieldCalendar" name="calendar" attribute="src" replace="es" default="en"/>
  <PARAMETER id="paramDirection" name="direction" default=""/>
  <PARAMETER id="paramLanguage" name="paramLanguage" attribute="value"/>
  <PARAMETER id="paramDateFrom" name="dateFrom" attribute="value"/>
	<PARAMETER id="paramDateFrom" name="dateFromdisplayFormat" attribute="displayformat" replace="xx"/>
	<PARAMETER id="paramDateFrom" name="dateFromsaveFormat" attribute="saveformat" replace="yy"/>
  <PARAMETER id="paramDateTo" name="dateTo" attribute="value"/>
	<PARAMETER id="paramDateTo" name="dateTodisplayFormat" attribute="displayformat" replace="xx"/>
	<PARAMETER id="paramDateTo" name="dateTosaveFormat" attribute="saveformat" replace="yy"/>
  <PARAMETER id="paramAmountFrom" name="amountFrom" attribute="value"/>
  <PARAMETER id="paramAmountTo" name="amountTo" attribute="value"/>
  <PARAMETER id="paramPaymentRule" name="paymentRule" default=""/>
  <PARAMETER id="paramStatus" name="status" default=""/>
  <PARAMETER id="parameterConstantSettle" name="constantSettle" default="isSettle"/>
  <PARAMETER id="paramSettle" name="settle" boolean="checked" withId="parameterConstantSettle"/>
  <PARAMETER id="parameterConstantConciliate" name="constantConciliate" default="isConciliate"/>
  <PARAMETER id="paramConciliate" name="conciliate" boolean="checked" withId="parameterConstantConciliate"/>
  <PARAMETER id="parameterConstantPending" name="constantPending" default="isPending"/>
  <PARAMETER id="paramPending" name="pending" boolean="checked" withId="parameterConstantPending"/>

  <PARAMETER id="parameterConstantReceipt" name="constantReceipt" default="Y"/>
  <PARAMETER id="paramReceipt" name="receipt" boolean="checked" withId="parameterConstantReceipt"/>
  <PARAMETER id="parameterConstantPayable" name="constantPayable" default="N"/>
  <PARAMETER id="paramPayable" name="payable" boolean="checked" withId="parameterConstantPayable"/>

  <PARAMETER id="parameterConstantGroup" name="constantGroup" default="isGroup"/>
  <PARAMETER id="paramGroup" name="group" boolean="checked" withId="parameterConstantGroup"/>
  <PARAMETER id="paramBPartnerId" name="paramBPartnerId" attribute="value"/>
  <PARAMETER id="paramBPartnerDescription" name="paramBPartnerDescription" attribute="value"/>
  <PARAMETER id="paramC_BANKACCOUNT_ID" name="cBankAccount" default=""/>
  <PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
  <PARAMETER id="tdleftTabs" name="leftTabs" default=""/>
  <PARAMETER id="paramParentTabContainer" name="parentTabContainer" default=" "/>
  <PARAMETER id="paramMainTabContainer" name="mainTabContainer" default=" "/>
  <PARAMETER id="paramChildTabContainer" name="childTabContainer" default=" "/>
  <PARAMETER id="tdtopButtons" name="navigationBar" default=""/>
  <PARAMETER id="keyMap" name="keyMap" default=""/>
  <PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
  <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
  <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>

  <PARAMETER id="param2" name="param2" default="2"/>

  <structure name="structure1">
    <FIELD id="fieldRownum1">rownum</FIELD>
    <FUNCTION id="funcEvenOddRow1xx" name="MODULE" arg1="fieldRownum1" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
    <FIELD id="fieldBpartner">bpartner</FIELD>
    <FIELD id="fieldDescription">description</FIELD>
    <FIELD id="fieldDateplanned">dateplanned</FIELD>
    <FIELD id="fieldDocumentno">invoice</FIELD>
    <FIELD id="fieldCurrency">currency</FIELD>
    <FIELD id="fieldPaymentRule">paymentrule</FIELD>
    <FIELD id="fieldAmount" format="euroInform">amount</FIELD>
    <FIELD id="fieldWriteoffamt" format="euroInform">writeoffamt</FIELD>
    <FIELD id="fieldDebtCancel">debtcancel</FIELD>
    <FIELD id="fieldDebtGenerate">debtgenerate</FIELD>
    <FIELD id="fieldStatus">status</FIELD>
    <FIELD id="fieldDpStatus">dpstatus</FIELD>
    <FIELD id="fieldPaid">ispaid</FIELD>
    <FIELD id="idfieldCInvoiceId" attribute="onclick" replace="xx">cInvoiceId</FIELD>
    <FIELD id="idfieldCInvoiceId" attribute="onclick" replace="yy">invoiceType</FIELD>
    <FIELD id="fieldCDebtPaymentId" attribute="onclick" replace="yy">cDebtPaymentId</FIELD>
    <FIELD id="fieldCDebtPaymentId2" attribute="onclick" replace="zz">cDebtPaymentId</FIELD>
    <FIELD id="fieldCDebtPaymentId2" attribute="onclick" replace="xx">path</FIELD>
    <SUBREPORT id="reportPaymentRule" name="reportPaymentRule" report="org/openbravo/erpCommon/reference/List">
      <ARGUMENT name="parameterListSelected" withId="paramPaymentRule"/>
    </SUBREPORT>
    <SUBREPORT id="reportStatus" name="reportStatus" report="org/openbravo/erpCommon/reference/List">
      <ARGUMENT name="parameterListSelected" withId="paramStatus"/>
    </SUBREPORT>
    <SUBREPORT id="reportC_ACCOUNTNUMBER" name="reportC_ACCOUNTNUMBER" report="org/openbravo/erpCommon/reference/List">
      <ARGUMENT name="parameterListSelected" withId="paramC_BANKACCOUNT_ID"/>
    </SUBREPORT>
    <FUNCTION id="fieldSumAmount" name="SUM" format="euroInform">amount</FUNCTION>
    <FUNCTION id="fieldSumAmountTotal" name="SUM" format="euroInform">amount</FUNCTION>
    <SECTION id="sectionBpartner" field="bpartner"/>
    <SECTION id="sectionStatus" field="status"/>"
    <SECTION id="sectionDetail"/>
  </structure>
  <structure name="structure2">
    <FIELD id="fieldRownum2">rownum</FIELD>
    <FUNCTION id="funcEvenOddRow2xx" name="MODULE" arg1="fieldRownum2" arg2="param2" format="integerEdition" attribute="class" replace="yy"/>
    <FIELD id="fieldBpartner2">bpartner</FIELD>
    <FIELD id="fieldDescription2">description</FIELD>
    <FIELD id="fieldDateplanned2">dateplanned</FIELD>
    <FIELD id="fieldDocumentno2">invoice</FIELD>
    <FIELD id="fieldCurrency2">currency</FIELD>
    <FIELD id="fieldPaymentRule2">paymentrule</FIELD>
    <FIELD id="fieldAmount2" format="euroInform">amount</FIELD>
    <FIELD id="fieldWriteoffamt2" format="euroInform">writeoffamt</FIELD>
    <FIELD id="fieldDebtCancel2">debtcancel</FIELD>
    <FIELD id="fieldDebtGenerate2">debtgenerate</FIELD>
    <FIELD id="fieldStatus2">status</FIELD>
    <FIELD id="fieldDpStatus2">dpstatus</FIELD>
    <FIELD id="fieldPaid2">ispaid</FIELD>
    <FIELD id="idfieldCInvoiceId2" attribute="onclick" replace="xx">cInvoiceId</FIELD>
    <FIELD id="idfieldCInvoiceId2" attribute="onclick" replace="yy">invoiceType</FIELD>
    <FIELD id="fieldCDebtPaymentId2" attribute="onclick" replace="yy">cDebtPaymentId</FIELD>
    <FIELD id="fieldCDebtPaymentId22" attribute="onclick" replace="zz">cDebtPaymentId</FIELD>
    <FIELD id="fieldCDebtPaymentId22" attribute="onclick" replace="xx">path</FIELD>
    <FUNCTION id="fieldSumAmount22" name="SUM" format="euroInform">amount</FUNCTION>
    <FUNCTION id="fieldSumAmountTotal22" name="SUM" format="euroInform">amount</FUNCTION>


    <SECTION id="sectionStatus2" field="status"/>"
    <SECTION id="sectionDetail2"/>
  </structure>
</REPORT>
